package cn.tedu.boot.ers.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NonNull;

import javax.validation.constraints.NotNull;
import java.time.LocalDate;


@Data
public class UserDTO {
    private Long id;
    @NotNull(message = "用户名不能为空")
    @ApiModelProperty(value = "用户名",name = "username",example = "tf001")
    private String username;
    @NotNull(message = "密码不能为空")
    @ApiModelProperty(value = "密码",name = "password",example = "1313")
    private String password;
    @NotNull(message = "电话不能为空")
    @ApiModelProperty(value = "电话",name = "tel",example = "10009999")
    private String tel;
    @NotNull(message = "性别不能为空")
    @ApiModelProperty(value = "性别",name = "gender",example = "男")
    private String gender;
    @ApiModelProperty(value = "生日",name = "birthday",example = "2022-06-11")
    private LocalDate birthday;
}
